//
//  GlobalNavigationViewController.m
//  MyLittleBrother
//
//  Created by speeda on 17/7/30.
//  Copyright © 2017年 speeda. All rights reserved.
//

#import "GlobalNavigationViewController.h"

@interface GlobalNavigationViewController ()

@end

@implementation GlobalNavigationViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
}




/*
-(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    
    if (self.childViewControllers.count > 0) {
        UIButton *but = [UIButton buttonWithType:UIButtonTypeCustom];
        [but setImage:[UIImage imageNamed:@"btn_return"] forState:UIControlStateNormal];
        [but setTitle:@"返回" forState:UIControlStateNormal];
        [but sizeToFit];
        //设置按钮的内边距
        but.contentEdgeInsets = UIEdgeInsetsMake(0, -10, 0, 0);
        [but addTarget:self action:@selector(backBut) forControlEvents:UIControlEventTouchUpInside];
        viewController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:but];
        
    }
    
    [super pushViewController:viewController animated:animated];
}

-(void)backBut {
    
    [self popViewControllerAnimated:YES];
}
*/
 
@end
